Notes on how I set up my Synology NAS
Mostly for future me, but perhaps others will appreciate some of the methods described here.
Overview
- Get it set up through the usual welcome wizard. btrfs is awesome.
- Connect it to my VPN, Tailscale.
- Do some manual configuration to get ansible management working
- Then do some prep work for remote management of the Docker daemon
- And lastly, prepare a user to own the files of the borg repositories
TODO docs
- user for home assistant backups
- nfs access from the servers
- ntp server since Ubiquiti decided that’s too hard (unifi gateways don’t have one)
- firewall, some rules
- LED schedule
- beep at 9am weekdays
Details
-
Configured an admin user,
ansible-admin. Manually logged in as my personal admin account
to authorize the shared ansible administrative SSH key. -
Give that account root via sudo. (e.g. put it into the administrators group)
- Which means a password is set for the account, I can’t use the pam module
-
Set up SynoCommunity in the package center
- Installed python3.x from SynoCommunity for ansible
- Installed
synocli-netso I have socat - Installed borg so backups work (borg runs
borgover ssh)
-
Installed tailscale
-
Added a bootup script to fix/grant Tailscale network interface,
tailscale0 -
Afterwards, added another bootup script to expose the docker socket over the VPN:
socat tcp-listen:2375,bind=$(tailscale ip -1),fork unix-connect:/var/run/docker.sock -
Create a “cyborg” (fun name, lol) user to be the filesystem owner of the borg repositories
-
Set up Garage to serve S3 contents